/*
 * @(#)FormSelectionField.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.form.bean;

import java.util.ArrayList;
import java.util.List;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
  FormSelectionField.java

  This class is the serializable bean reflecting business logic uses.

    @author           Scott Tong
    @company          DCIVision Limited
    @creation date    30/12/2003
    @version          $Revision: 1.6 $
*/

public class FormSelectionField extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.6 $";

  static final long serialVersionUID = -4355534889170161731L;

  private Integer elementID = null;
  private Integer maxAnswer = null;
  private String displayType = null;

  public static final String HORIZONTAL = "H";
  public static final String VERTICAL = "V";

  private List formSelectionFieldOptionList = new ArrayList();

  public FormSelectionField() {
    super();
  }

  public Integer getElementID() {
    return(this.elementID);
  }

  public void setElementID(Integer elementID) {
    this.elementID = elementID;
  }

  public Integer getMaxAnswer() {
    return(this.maxAnswer);
  }

  public void setMaxAnswer(Integer maxAnswer) {
    this.maxAnswer = maxAnswer;
  }

  public String getDisplayType() {
    return(this.displayType);
  }

  public void setDisplayType(String displayType) {
    this.displayType = displayType;
  }

  public List getFormSelectionFieldOptionList() {
    return(this.formSelectionFieldOptionList);
  }

  public void setFormSelectionFieldOptionList(List formSelectionFieldOptionList) {
    this.formSelectionFieldOptionList = formSelectionFieldOptionList;
  }

  public boolean isHorizontal(String displayType) {
    return (this.HORIZONTAL.equals(displayType));
  }

  public boolean isVertical (String displayType) {
    return (this.VERTICAL.equals(displayType));
  }
}
